package cn.hdu.liang.reusing;

class Instrument {
    static void tune(Instrument instrument) {
        instrument.play();
    }

    public void play() {
        System.out.println("Instrument.play");
    }
}

public class Wind extends Instrument {
    @Override
    public void play() {
        System.out.println("Wind.play");
    }

    public static void main(String[] args) {
        Wind flute = new Wind();
        Instrument.tune(flute);
    }
}
